﻿using System.Web.Mvc;
using Mozlite.Common;

namespace Mozlite.Web.UI.Areas.Forums
{
    public class ForumsAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return DiscussApplication.Current.AreaName ;
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Forums_default",
                "Forums/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
